﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="schools.aspx.cs" Inherits="OF.Web.schools" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:TextBox ID="txtkey" Text="请输入学校名称" runat="server"></asp:TextBox>
        <asp:Button runat="server" ID="btnSearch" Text="搜索" OnClick="btnSearch_Click" /><br />

        热门学校：
        <div>
            <asp:Repeater ID="rptSchool" runat="server">
                <ItemTemplate>
                    <a href='/sellers.aspx?schoolid=<%#Eval("id") %>'><%#Eval("shcoolname") %></a> </td>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <p>&nbsp;</p>
  
        <div>
            <asp:Repeater ID="rptProvince" runat="server" OnItemDataBound="rptProvince_ItemDataBound">
                <ItemTemplate>
                   

                    <div style="padding-left: 45px;">
                        <asp:Repeater ID="rptCity" runat="server" OnItemDataBound="rptCity_ItemDataBound">
                            <ItemTemplate>
                                <%#Eval("area") %> ：
                                  <asp:Repeater ID="rptCountry" runat="server">
                                      <ItemTemplate>
                                          <a href='/schools.aspx?areaid=<%#Eval("id") %>'><%#Eval("area") %></a> </td>               
                                      </ItemTemplate>
                                  </asp:Repeater>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>

        <div>
            搜索结果：
              <asp:Repeater ID="rptList" runat="server">
                  <ItemTemplate>
                      <a href='/index.aspx?schoolid=<%#Eval("id") %>'><%#Eval("shcoolname") %></a> </td>
                  </ItemTemplate>
              </asp:Repeater>
        </div>
    </form>
</body>
</html>
